Exclude negative page values as well. They are possible in case of
dropping on the left-side of an app folder.
Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7700
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4153>
: Math.floor(x / this._pageWidth);
// Out of bounds
- if (page >= this._pages.length)
+ if (page < 0 || page >= this._pages.length)
return [0, 0, DragLocation.INVALID];
if (isRtl && this._orientation === Clutter.Orientation.HORIZONTAL)